#include "qdistortion.h"

QDistortion::QDistortion(QWidget *parent)
	: QWidget(parent)
{
	ui.setupUi(this);
}

QDistortion::~QDistortion()
{

}

QDistortion::QDistortion(AudioManager::Manager * manager,int* currentTrack){
	ui.setupUi(this);
	this->aManager=manager;
	this->currentTrack=currentTrack;
}
void QDistortion::setDistoLVL(int lvl){
	aManager->disto_setDistoLVL(*currentTrack,((float)lvl)/100);
}
void QDistortion::setActivate(){
	aManager->disto_setActive(*currentTrack);
}
